import request from '@/utils/request'

var myurl = '/drug/physic';

// 查询药品列表
export function listPhysic(query) {
  return request({
    url: myurl + '/list',
    method: 'get',
    params: query
  })
}

//查询生产厂家列表
export function listPhysicFactory() {
  return request({
    url: myurl + '/listFactory',
    method: 'get'
  })
}

//获取药品信息
// 查询公告详细
export function getPhysic(physicId) {
  return request({
    url: myurl + '/' + physicId,
    method: 'get'
  })
}

// 修改药品信息
export function updatePhysic(data) {
  return request({
    url: myurl,
    method: 'put',
    data: data
  })
}

// 删除公告
export function delPhysic(physicId) {
  return request({
    url: myurl + '/' + physicId,
    method: 'delete'
  })
}
